package edu.neusoft.yuejian_09.model;

import edu.neusoft.yuejian_09.service.ActivityService;
import edu.neusoft.yuejian_09.service.ClubActService;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/10/24.
 */

public class ClubActModel {

        private Retrofit retrofit;

        public ClubActModel() {
            retrofit = new Retrofit.Builder()
                    .baseUrl("http://10.0.2.2/neu1_yuejian/index.php/Api/")
                    .addConverterFactory(GsonConverterFactory.create())
                    .build();
        }

        public Call getClubactivitys(String c_id) {
            ClubActService clubActService = retrofit.create(ClubActService.class);
            return clubActService.getClubActivities(c_id);

        }

    }

